package com.atguigu.userservice.service;

import com.atguigu.commonutils.ClientEntity.ClientMember;
import com.atguigu.commonutils.R;
import com.atguigu.userservice.entity.UcenterMember;
import com.atguigu.userservice.entity.vo.LoginVo;
import com.atguigu.userservice.entity.vo.RegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author huangqicai
 * @since 2022-10-27
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    /*实现用户注册*/
    R userRegister(RegisterVo registerVo);

    /*实现用户登录*/
    R userLogin(LoginVo loginVo);

    /*根据用户id获取用户登录信息,远程调用Client*/
    ClientMember getLoginInfo(String userId);

    /*前端传递过来的token*/
    UcenterMember getLoginInfoFront(String userId);
}
